package com.rocker.graduation.util;

import java.util.Properties;

public class Config {
	//private final static Logger logger = Logger.getLogger(Config.class);
	
	private Properties prop = new Properties();
	
	private static Config instance = new Config();
	
	private Config(){
		init();
	}
	
	public static Config getInstance(){
		return instance;
	}
	
	private void init() {
		try {
			prop.load(getClass().getResourceAsStream("/mail.properties"));
		} catch (Exception e) {
			e.printStackTrace();
			//logger.error(e.getMessage());
		}
		
	}
	
	public String getProperty(String key){
        return prop.getProperty(key);
    }
	
	public Properties getProperties(){
		return prop;
	}
}
